package com.ruoyi.shopping.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 商城分类对象 jy_mall_classify
 *
 * @author scx
 * @date 2022-06-10
 */
@ApiModel
public class MallClassify extends TreeEntity
{
    private static final long serialVersionUID = 1L;
    private MallProduct mallProduct;

    public MallProduct getMallProduct() {
        return mallProduct;
    }

    public void setMallProduct(MallProduct mallProduct) {
        this.mallProduct = mallProduct;
    }

    private boolean leaf;

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    @ApiModelProperty(value = "分类名称")
    private String classifyName;

    /** 分类图标 */
    @Excel(name = "分类图标")
    @ApiModelProperty(value = "分类图标")
    private String classifyImg;

    /** 是否推荐 */
    @Excel(name = "是否推荐")
    @ApiModelProperty(value = "是否推荐")
    private String recommend;

    /** 启用状态 */
    @Excel(name = "启用状态")
    @ApiModelProperty(value = "启用状态")
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setClassifyName(String classifyName)
    {
        this.classifyName = classifyName;
    }

    public String getClassifyName()
    {
        return classifyName;
    }
    public void setClassifyImg(String classifyImg)
    {
        this.classifyImg = classifyImg;
    }

    public String getClassifyImg()
    {
        return classifyImg;
    }
    public void setRecommend(String recommend)
    {
        this.recommend = recommend;
    }

    public String getRecommend()
    {
        return recommend;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("classifyName", getClassifyName())
            .append("classifyImg", getClassifyImg())
            .append("recommend", getRecommend())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
